//
//  Dog.m
//  JKOCRealm
//
//  Created by 王冲 on 2019/2/26.
//Copyright © 2019年 JK科技有限公司. All rights reserved.
//

#import "Dog.h"

@implementation Dog

/**
 设置主键
    
 @return 返回主键的值
 */
+(NSString *)primaryKey{
    
    return @"dogId";
}
    
+(NSDictionary<NSString *,RLMPropertyDescriptor *> *)linkingObjectsProperties{
    
    return @{@"owners":[RLMPropertyDescriptor descriptorWithClass:NSClassFromString(@"Student") propertyName:@"dogs"]};
}
    
// Specify default values for properties

//+ (NSDictionary *)defaultPropertyValues
//{
//    return @{};
//}

// Specify properties to ignore (Realm won't persist these)

//+ (NSArray *)ignoredProperties
//{
//    return @[];
//}

@end
